package com.luge.lib_common.service.me

import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.luge.lib_common.constant.RoutePath

class MeServiceImpl private constructor(){

    @Autowired(name = RoutePath.Me.Service_ME)
    lateinit var service:IMeSevice

    init {
        ARouter.getInstance().inject(this)

    }

    fun getFragment(): Fragment{
        return service.getFragment()
    }

    companion object{
        val instance = Singleton.holder
            object Singleton {
                val holder = MeServiceImpl()
            }
    }

}